@(houses: List[House])(implicit lang: Lang)

@main("The Cult Cinema Inc. Movie"){

	<section style="padding-top:60px">
				<div class="row">
					<div class="span12">
						<ul class="breadcrumb">
							<li><a href="@routes.Application.index(lang.code)">@Messages("home")(lang)</a> <span class="divider">/</span></li>
		        			<li class="active">@Messages("staff.house.manage")(lang)</li>
		        		</ul>
					</div>
				</div>
				@if(flash.contains("house")) {
					<div class="row">
						<div class="span12">
					    	<div class="alert-success alert alert-block">
					    		<a class="close">&times;</a>
					    		<strong>@Messages(flash.get("house"))(lang)</strong>
						    </div>
						</div>
					</div>
				}
				<div class="row">

					<div class="span12">

							<div class="row">
								<div class="span12 well">
									<h3>@Messages("staff.house.manage")(lang)</h3>
									<table class="table table-bordered table-striped table-hover">
										<thead>
											<tr>
												<td width="10%">@Messages("staff.house")(lang)</td>
												<td width="30%">@Messages("staff.house.size")(lang)</td>
												<td width="40%">@Messages("staff.house.capacity")(lang)</td>
												<td width="20%">@Messages("staff.house.action")(lang)</td>
											</tr>
										</thead>
										<tbody>
											@houses.map { house =>
												<tr>
													<td>@house.id</td>
													<td>@(house.row1+house.row2+house.row3) x @(house.col1+house.col2+house.col3)</td>
													<td>@((house.row1+house.row2+house.row3)*(house.col1+house.col2+house.col3))
													(-@house.seats.size())
													</td>
													<td><a href="@routes.Staff.seatingPlan(house.id, lang.code)" class="btn btn-info">@Messages("staff.house.edit")(lang)</a></td>
												</tr>
											}
										</tbody>
									</table>
								</div>
							</div>
						</div>

				</div>
  			</section>

}(lang)
